﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace SHack
{
    public partial class FrmWebLook : Form
    {
        public FrmWebLook(string url)
        {
            InitializeComponent();
            wb.Navigate(url);
            txtUrl.Text = url;
        }

        private void FrmWebLook_Load(object sender, EventArgs e)
        {

        }

        private void wb_DocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e)
        {
            this.Text = wb.DocumentTitle;
        }

        private void btnNavg_Click(object sender, EventArgs e)
        {
            wb.Navigate(txtUrl.Text);
        }

        private void wb_LocationChanged(object sender, EventArgs e)
        {
            txtUrl.Text = wb.Url.ToString();
        }
    }
}
